package br.com.j7.jdesk.ui.bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

import br.com.j7.jdesk.library.serial.SerialConnection;

@ManagedBean
@RequestScoped
public class ComandBean extends WebContext{
	
	private SerialConnection serial;
	
	public ComandBean() {
		serial = (SerialConnection) getCurrentSession().getAttribute("serial");
	}
	
	public void comand( String cmd ){
		serial.sendSerial(cmd);
	}

}
